﻿@page
@model DotNetStar.TheKing.Web.Pages.User.Setting.ChangePwdModel
@{
    Layout = "_Layout";
    ViewBag.Title = $"修改密码";
}


<form method="post">
    @if (ModelState.ErrorCount > 0)
    {
        <div asp-validation-summary="All" class="alert alert-danger"></div>
    }
    @if (ViewData["Success"].To<bool>(false))
    {
        <div class="alert alert-success"><i class="fas fa-check-circle"></i> 提交成功</div>
    }
    <div class="form-group">
        <div class="row">
            <label asp-for="OldPassword" class="col-2"></label>
            <input type="password" asp-for="OldPassword" class="form-control col-4 w-25" maxlength="15" />
            <span class="text-danger col" asp-validation-for="OldPassword"></span>
        </div>
    </div>
    <div class="form-group">
        <div class="row">
            <label asp-for="NewPassword" class="col-2"></label>
            <input type="password" asp-for="NewPassword" class="form-control col-4 w-25" maxlength="15" />
            <span class="text-danger col" asp-validation-for="NewPassword"></span>
        </div>
    </div>
    <div class="form-group">
        <div class="row">
            <label asp-for="ConfirmPassword" class="col-2"></label>
            <input type="password" asp-for="ConfirmPassword" class="form-control col-4 w-25" maxlength="15" />
            <span class="text-danger col" asp-validation-for="ConfirmPassword"></span>
        </div>
    </div>
    <div class="form-group">
        <button class="btn btn-primary w-25" type="submit"><i class="fas fa-check"></i> 提 交</button>
    </div>
</form>